﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PaymentListControl.ascx.cs"
    Inherits="BK.WebSite.Controls.PaymentListControl" %>
<%@ Import Namespace="BK.Entities" %>
<%@ Import Namespace="Lib.ApplicationBlocks.Modules.Web.General" %>
<asp:Repeater ID="rptrUsers" runat="server" EnableTheming="False">
    <HeaderTemplate>
        <table cellpadding="0" cellspacing="0" class="dataList">
            <tr>
                <th>
                    Account
                </th>
                <th>
                    Date
                </th>
                <th>
                    Category
                </th>
                <th>
                    Amount
                </th>
                <th>
                    Currency
                </th>
                <th>
                    Description
                </th>
                <th style="white-space: nowrap;">
                    Отметить (<label for="checkUncheckAll">все</label>
                    <input type="checkbox" id="checkUncheckAll" />)
                </th>
                <th>
                </th>
                <th>
                </th>
            </tr>
            <tr>
                <th>
                    <asp:TextBox runat="server" ID="TextBox1" class="column"></asp:TextBox>
                </th>
                <th>
                    <asp:TextBox runat="server" ID="tbName" class="column"></asp:TextBox>
                </th>
                <th>
                    <asp:TextBox runat="server" ID="tbShortName" class="column"></asp:TextBox>
                </th>
                <th>
                </th>
                <th>
                </th>
                <th>
                </th>
                <th>
                </th>
                <th>
                    <button type="button" class="editBtn">
                        Фильтровать
                    </button>
                </th>
                <th>
                    <button type="button" class="deleteBtn">
                        Сбросить
                    </button>
                </th>
            </tr>
    </HeaderTemplate>
    <ItemTemplate>
        <tr>
            <td class="leftCellData">
                <asp:HiddenField ID="hfId" runat="server" Value="<%# ((PaymentItemEntity) Container.DataItem).Id.Value %>" />
                <%# ((PaymentItemEntity)Container.DataItem).AccountName%>
            </td>
            <td class="leftCellData">
                <%# ((PaymentItemEntity) Container.DataItem).DateTime%>
            </td>
            <td class="leftCellData">
                <%# ((PaymentItemEntity)Container.DataItem).CategoryFullName%>
            </td>
            <td class="leftCellData">
                <%# ((PaymentItemEntity) Container.DataItem).Amount%>
            </td>
            <td class="leftCellData">
                <%# ((PaymentItemEntity) Container.DataItem).CurrencyShortName%>
            </td>
            <td class="leftCellData">
                <%# ((PaymentItemEntity) Container.DataItem).Description%>
            </td>
            <td class="centerCellData">
                <input type="checkbox" />
            </td>
            <td>
                <asp:Button runat="server" ID="btnEdit" Text="Редактировать" CssClass="editBtn" CommandName="<%# WebConstants.CommandNames.EDIT %>" />
            </td>
            <td>
                <button type="button" class="deleteBtn">
                    Удалить
                </button>
            </td>
        </tr>
    </ItemTemplate>
    <FooterTemplate>
        </table>
    </FooterTemplate>
</asp:Repeater>
